<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>LogDevice API: /Users/chunma/fbsource/fbcode/logdevice/include/ClientSettings.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">LogDevice API
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_3c764b8ed47d00d6b5627c49bc32f70b.html">fbsource</a></li><li class="navelem"><a class="el" href="dir_7d108206b339ff559c2aaa41b8fb2672.html">fbcode</a></li><li class="navelem"><a class="el" href="dir_903050bd1b8bae4e85fca6c90c654c58.html">logdevice</a></li><li class="navelem"><a class="el" href="dir_46acbb48b960dc60b3c5450db912a0e4.html">include</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">ClientSettings.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#pragma once</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="preprocessor">#include &lt;utility&gt;</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="preprocessor">#include &lt;vector&gt;</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="preprocessor">#include &lt;folly/Optional.h&gt;</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;</div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacefacebook.html">facebook</a> { <span class="keyword">namespace </span>logdevice {</div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;</div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="keyword">class </span>ClientSettingsImpl;       <span class="comment">// private implementation</span></div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;</div><div class="line"><a name="l00024"></a><span class="lineno"><a class="line" href="classfacebook_1_1logdevice_1_1_client_settings.html">   24</a></span>&#160;<span class="keyword">class </span><a class="code" href="classfacebook_1_1logdevice_1_1_client_settings.html">ClientSettings</a> {</div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160; <span class="keyword">public</span>:</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;  <span class="keyword">static</span> <a class="code" href="classfacebook_1_1logdevice_1_1_client_settings.html">ClientSettings</a>* <a class="code" href="classfacebook_1_1logdevice_1_1_client_settings.html#a24c0a7fa56735b0fa2ddd0216527f7b2">create</a>();</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;  <span class="keyword">virtual</span> ~<a class="code" href="classfacebook_1_1logdevice_1_1_client_settings.html">ClientSettings</a>() {}</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="keywordtype">int</span> <span class="keyword">set</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, <span class="keyword">const</span> <span class="keywordtype">char</span> *value);</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;  <span class="comment">// Overload for settings with integral settings, for convenience</span></div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;  <span class="keywordtype">int</span> <span class="keyword">set</span>(<span class="keyword">const</span> <span class="keywordtype">char</span> *name, int64_t value);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;  <span class="keywordtype">int</span> <span class="keyword">set</span>(<span class="keyword">const</span> std::vector&lt;std::pair&lt;std::string, std::string&gt;&gt;&amp; settings);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;  folly::Optional&lt;std::string&gt; <span class="keyword">get</span>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;  <span class="keywordtype">bool</span> <a class="code" href="classfacebook_1_1logdevice_1_1_client_settings.html#a54e93e0a125fd4226dd7f5734ef6f77b">isOverridden</a>(<span class="keyword">const</span> std::string &amp;name);</div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;  std::vector&lt;std::pair&lt;std::string, std::string&gt;&gt; <a class="code" href="classfacebook_1_1logdevice_1_1_client_settings.html#a85f7db3bfc9543580db2c5fb29b84ee3">getAll</a>();</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160; <span class="keyword">private</span>:</div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;  <a class="code" href="classfacebook_1_1logdevice_1_1_client_settings.html">ClientSettings</a>() { }</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;  <span class="keyword">friend</span> <span class="keyword">class </span>ClientSettingsImpl;</div><div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;  ClientSettingsImpl* impl();   <span class="comment">// downcasts (this)</span></div><div class="line"><a name="l00130"></a><span class="lineno">  130</span>&#160;};</div><div class="line"><a name="l00131"></a><span class="lineno">  131</span>&#160;</div><div class="line"><a name="l00132"></a><span class="lineno">  132</span>&#160;}}</div><div class="ttc" id="classfacebook_1_1logdevice_1_1_client_settings_html_a24c0a7fa56735b0fa2ddd0216527f7b2"><div class="ttname"><a href="classfacebook_1_1logdevice_1_1_client_settings.html#a24c0a7fa56735b0fa2ddd0216527f7b2">facebook::logdevice::ClientSettings::create</a></div><div class="ttdeci">static ClientSettings * create()</div></div>
<div class="ttc" id="classfacebook_1_1logdevice_1_1_client_settings_html_a54e93e0a125fd4226dd7f5734ef6f77b"><div class="ttname"><a href="classfacebook_1_1logdevice_1_1_client_settings.html#a54e93e0a125fd4226dd7f5734ef6f77b">facebook::logdevice::ClientSettings::isOverridden</a></div><div class="ttdeci">bool isOverridden(const std::string &amp;name)</div></div>
<div class="ttc" id="namespacefacebook_html"><div class="ttname"><a href="namespacefacebook.html">facebook</a></div><div class="ttdef"><b>Definition:</b> AsyncReader.h:17</div></div>
<div class="ttc" id="classfacebook_1_1logdevice_1_1_client_settings_html"><div class="ttname"><a href="classfacebook_1_1logdevice_1_1_client_settings.html">facebook::logdevice::ClientSettings</a></div><div class="ttdef"><b>Definition:</b> ClientSettings.h:24</div></div>
<div class="ttc" id="classfacebook_1_1logdevice_1_1_client_settings_html_a85f7db3bfc9543580db2c5fb29b84ee3"><div class="ttname"><a href="classfacebook_1_1logdevice_1_1_client_settings.html#a85f7db3bfc9543580db2c5fb29b84ee3">facebook::logdevice::ClientSettings::getAll</a></div><div class="ttdeci">std::vector&lt; std::pair&lt; std::string, std::string &gt; &gt; getAll()</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- HTML footer for doxygen 1.8.14-->
<!-- start footer part -->
<hr class="footer"/><address class="footer">
<small>
LogDevic API v2.35
</small>
</address>
</body>
</html>
